Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

173
Vistas
How to import @types with "require" function?

Im learning Electron.js v16.0.5 and have trouble with types. I dont know if it's VS code issue or my but when I write this code

const myElectron = require('electron')

myElectron has type any. At the same time when Im opening in the next tab electron.d.ts that is located in node_moduels, myElectron has type Electron. When I close electron.d.ts tab than myElectron again has type any.

So, how could I import types with require function?

*Note: in case import electron from 'electron' it has types, but in building gives error and crashes

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The issue has gone by itself...

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda